package com.longcai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.longcai.entity.sys.SysPermission;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZJ
 * @since 2019-03-16
 */
public interface SysPermissionService extends IService<SysPermission> {

    List<SysPermission> listParents();

    SysPermission getById(Integer id);

    void updatePermission(SysPermission sysPermission);

    List<SysPermission> listByRoleId(Integer roleId);
}
